package com.mg.yygh.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.mg.yygh.model.order.OrderInfo;
import com.mg.yygh.vo.order.OrderCountQueryVo;
import com.mg.yygh.vo.order.OrderQueryVo;

import java.util.Map;

/**
 * @author M_Dragon
 * @date 2022/9/26/026 10:21
 */
public interface OrderService extends IService<OrderInfo> {
    Long saveOrder(String scheduleId, Long patientId);

    OrderInfo getOrders(Long orderId);

    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    Map<String, Object> show(Long id);

    // 取消预约
    Boolean cancelOrder(Long orderId);

    // 就医提醒定时任务
    void patientTips();

    // 统计预约
    Map<String, Object> getCountMap(OrderCountQueryVo orderCountQueryVo);
}
